import instance from '../http';

export const login = (credentials)=>{
    let [username, password] = credentials.split(',')
    return instance({
        url:"/auth/login/",
        method:"post",
        data:{
            username,
            password
        }
    })
}